#include <stdio.h>

// 二维数组的访问和遍历

int main(){
    int map[3][4] = {
        {1, 2, 3, 4},
        {5, 6, 7, 8},
        {9, 10, 11, 12}
    };

    int rows = sizeof map / sizeof map[0];
    int cols = sizeof map[0] / sizeof map[0][0];
    
    for(int i = 0; i < rows; i++){
        for(int j = 0; j < cols; j++){
            printf("%d\n", map[i][j]);
        }
    }

    return 0;

}